<%@ page contentType="text/html; charset=utf-8"%>
<%@ page language="java" import="com.java.service.*,java.util.*,com.java.model.UserSession,com.java.util.*"%>
<%
request.setCharacterEncoding("utf-8");
String ent_id = request.getParameter( "ent_id" );
String login_id = request.getParameter( "login_id" );
login_id = Crypto.EncodeBySType(login_id);

HashMap map_id = new HashMap();
HashMap map1_id = null;
ArrayList list_id = new ArrayList();
CommonDaoService commonservice_id = new CommonDaoService("ComIdChkDao");	
map_id.put("login_id",login_id);		
map_id.put("ent_id",ent_id);	
list_id = (ArrayList)commonservice_id.commonDaoMethod(map_id);

String check_yn = (String)((HashMap)list_id.get(0)).get("check_yn");
%>
<script>

if('<%=check_yn%>' == 'N'){
	parent.mainfrm.id_chk.value = 'Y';
	alert('중복된 ID가  없습니다.');
}else{
	parent.mainfrm.id_chk.value = 'N';
	parent.mainfrm.login_id.value = '';
	alert('중복된 ID가  있습니다.');
}
</script>
